project/ustp.git
18 months agonetif_utils: correctly close fd on read error master
Christian Marangi [Mon, 29 May 2023 15:07:54 +0000 (17:07 +0200)]
netif_utils: correctly close fd on read error

Fix Coverity Scan CID 1521069 reporting leaking fd on read error.
Refactor the read error handling and correctly close fd on read error.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 years agobuild: use pthread cflags/ldflags
Felix Fietkau [Tue, 21 Sep 2021 17:41:09 +0000 (19:41 +0200)]
build: use pthread cflags/ldflags

Fixes build on glibc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agolibnetlink: turn rtnetlink error answers into debug msgs
Felix Fietkau [Fri, 27 Aug 2021 10:36:44 +0000 (12:36 +0200)]
libnetlink: turn rtnetlink error answers into debug msgs

They should not be logged by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobridge: check port bpdu filter status and apply it to the config
Felix Fietkau [Fri, 27 Aug 2021 10:19:29 +0000 (12:19 +0200)]
bridge: check port bpdu filter status and apply it to the config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agolibnetlink: fix netlink buffer space handling
Felix Fietkau [Wed, 25 Aug 2021 11:29:45 +0000 (13:29 +0200)]
libnetlink: fix netlink buffer space handling

Significantly increaese buffer size in order to avoid missing events
Do not stop polling socket after running out of buffer space

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agobrmon: continue polling the socket after an error occured
Felix Fietkau [Wed, 25 Aug 2021 11:29:14 +0000 (13:29 +0200)]
brmon: continue polling the socket after an error occured

Fixes a corner case with edge-trigger epoll

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 years agoInitial import
Felix Fietkau [Thu, 19 Aug 2021 06:59:56 +0000 (08:59 +0200)]
Initial import

Signed-off-by: Felix Fietkau <nbd@nbd.name>